package cn.skyclass.beans
{
	/**
	 * 常用的用户信息
	 */
	[Bindable]
	[RemoteClass(alias="cn.skyclass.beans.UserBean")]
	public class UserBean extends BaseExBean
	{
		public var password:String;	
		public var trueName:String;	
		public var nickname:String;	
		public var email:String;		
		public var role:int;
		public var type:int;
		public var enabled:Boolean;
		
		public var number:String;
		public var ownerAcademyId:int;
		public var ownerSpecialityId:int;
		public var ownerClassId:int;
		
		
		[Transient]
		override public function get label():String{
			if(this.trueName && this.number){
				return this.trueName + "(" + this.number + ")";
			}else if(this.trueName){
				return this.trueName;
			}else{
				return this.name;
			}
		}
	}
}